<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<?php
include("config/connect.php");
include("public/common.php");

$opt = CheckUrlParamNoDie( "opt" );
if ($opt == "" || $opt == "zip")
{
	$sql = "update settings set download_count=download_count + 1";
	mysql_query( $sql );

	echo "<script type=\"text/javascript\">
		var _bdhmProtocol = ((\"https:\" == document.location.protocol) ? \" https://\" : \" http://\");
		document.write(unescape(\"%3Cscript src='\" + _bdhmProtocol + \"hm.baidu.com/h.js%3F7eb75a7b189f4a709dead85bc20eb0dd' type='text/javascript'%3E%3C/script%3E\"));
		</script>";
		
	echo "<script type=\"text/javascript\">window.location.href=\"http://www.gouwutu.com/download/gouwutu.zip\";</script>";
	echo "</head></html>";

//	if ($opt == "zip")
//		Header("Location:http://www.gouwutu.com/download/gouwutu.zip");
//	else
//		Header("Location:http://www.gouwutu.com/download/gouwutu.zip");
		
	exit;
}
else if ($opt == "view")
{

}
else
{
	exit;
}

$sql = "select download_count from settings";
$row = mysql_fetch_assoc( mysql_query( $sql ) );
$c = $row["download_count"] * 30;
?>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body style="margin-left:0; margin-top:0; font-size:10px; color:#660000; font-weight:bold; background-color:transparent;">
<table align="center" cellpadding="0" cellspacing="0" border="0"><tr><td style="font-size:12px; font-weight:bold"><?PHP echo "已有 $c 位用户下载"; ?></td></tr></table>
</body>
</html>

